<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <!--    <title th:text="${username}">xx</title>-->
</head>
<body>
<h1 th:align="left">用户名:<span th:text="${username}"></span></h1>
<form th:action="@{/}">
    <label>姓名：</label><span th:text="${student.name}"></span><br>
    <label>学号：</label><span th:text="${student.studentId}"></span><br>
    <label>年级：</label><span th:text="${student.grade}"></span><br>
    <label>专业：</label><span th:text="${student.department}"></span><br>
    <label>学院：</label><span th:text="${student.academy}"></span><br>
    <label>已选课程：</label>
    <div class="col-sm-9">
        <label th:each="course:${student.getCourses()}">
            <span th:text="${course.getCourseName()}"></span><br>
        </label>
    </div>
    <br>
    <input type="submit" th:value="确认" />
</form>
</body>
</html>